#!/usr/bin/env python
# encoding: utf-8
"""
    @author:水痕
    @time:2018-09-11 15:55:15
    @email:332904234@qq.com
    @version:1.0
    @fileName:user_info.py
    @describe: 用户中心
"""

from django.shortcuts import render, redirect
from django.views import View
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator


@method_decorator(login_required, name='dispatch')
class UserInfoView(View):
    """
    用户中心首页
    """

    def get(self, request, *args, **kwargs):
        return render(request, 'user-info.html')


@method_decorator(login_required, name='dispatch')
class ModifyUserInfoView(View):
    """
    用户用户信息
    """

    def get(self, request, *args, **kwargs):
        return render(request, 'modify-user-info.html')
